﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mainMenu="clr-namespace:Peter.Common.MainMenu;assembly=Peter.Common">

   <Style TargetType="{x:Type MenuItem}"
          x:Key="SeparatorStyle">
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type MenuItem}">
               <Separator HorizontalAlignment="Stretch"
                          IsEnabled="false"
                          Margin="2,4" />
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <Style x:Key="MainMenuSeparatorStyle">
      <Setter Property="Control.Template">
         <Setter.Value>
            <ControlTemplate TargetType="mainMenu:MainMenuItem">
               <Border BorderThickness="2,0,0,0"
                       Margin="0,3"
                       BorderBrush="{DynamicResource SecondaryBrush}" />
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

</ResourceDictionary>